package com.zwy.ubts.service;

import com.zwy.ubts.bean.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Zhou Wenying
 * @Description:
 * @Date Created in 14:53 2023/3/31
 */
public interface OrderService {
    int insertOrder(Integer userId, String addrid, String[] arrayBook);
    List<Order> selectOrderByOwnerUserId(Integer userId);
    List<Order> selectOrderByOtherUserId(Integer userId);
    //购买者更新 确认收货
    Integer updateBookById(Integer userId,Integer orderId,Integer bookId);
    //出售者更新
    Integer updateBookIdById(Integer otherUserId,Integer orderId,Integer bookId,String kdId);
    Order selectOrderById(Integer orderId);
   }
